package com.live.qn.stream.constants;

public class QiniuStreamEventConstants {

    /**
     * 事件集合
     */
    public static final String[] EVENT_LIST = new String[]{
            "onConnecting",
            "on_preparing",
            "onReady",
            "onStreaming",
            "onShutdown",
            "onIoError",
            "onDisconnected",
            "onTorchInfo",
            "onOpenCameraFail"
    };

    public static final String ON_PREPARING = "on_preparing";

    /**
     * 无法发开摄像头状态事件
     */
    public static final String ON_OPEN_CAMERA_FAIL = "onOpenCameraFail";

    /**
     * 打开闪光灯
     */
    public static final String ON_TORCH_INFO = "onTorchInfo";

    /**
     * 断开链接状态事件名
     */
    public static final String ON_DISCONNECTED = "onDisconnected";

    /**
     * 网络中断状态事件名
     */
    public static final String ON_IO_ERROR = "onIoError";

    /**
     * 中间状态事件名
     */
    public static final String ON_SHUTDOWN = "onShutdown";

    /**
     * 推流中状态事件名
     */
    public static final String ON_STREAMING = "onStreaming";

    /**
     * 准备状态事件名
     */
    public static final String ON_READY = "onReady";

    /**
     * 链接准备事件名
     */
    public static final String ON_CONNECTING = "onConnecting";
}
